package cn.wen233.srpc.basic.model;

/**
 * @author wenei
 * @date 2021-10-28 16:54
 */
public enum Status {

    /**
     * Response 执行成功的响应
     */
    SUCCESS(200, "执行成功"),

    /**
     * Response 执行失败的响应
     */
    FAILURE(204, "执行失败"),

    /**
     * 熔断机制
     */
    ROLLBAKC(210, "熔断机制");

    private final int code;

    private final String message;

    Status(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
